package com.dyh.quickdemo.trace;

import java.util.ArrayList;
import java.util.List;

/*
@Author=Joey Wheeler
@Date=2021/3/9 14:38
*/
public abstract class AbstractClue implements Clue{
    protected String title;
    protected List<Node> referenceNode = new ArrayList<>();

    public List<Node> getReferenceNode() {
        return referenceNode;
    }

    public void setReferenceNode(List<Node> referenceNode) {
        this.referenceNode = referenceNode;
    }



    @Override
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public List<Node> reference() {
        return this.referenceNode;
    }

    @Override
    public Node addNode(Node node){
        this.referenceNode.add(node);
        return node;
    }
}
